<template>
	<view>
		<view class="my_list" v-for="(itam,index) in cons" @click="tz(itam.termName)">
		 <view class="my_lists p-q3 f">
		 	<view class="my_ls_l"><text class="wcl-3">{{itam.termName}}</text></view>
		 	<view class="my_ls_r"><text>查看报告</text></view>
		 </view>
	  </view>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				cons:[]
			}
		},
		created() {
			let that = this
			that.pyReq(that.$http.getTermId,{},function(res){
					  that.cons = res.result
			});
			// let headers={
			// 	  'content-type': 'application/x-www-form-urlencoded',
			// 	  'token': uni.getStorageSync('token')
			// }
			//  uni.request({
			// 	  url: that.$http.getTermId,
			// 	  method: 'POST',
			// 	  header:headers,
			// 	  success: (res)=>{
			// 		  console.log(res)
			// 		  that.cons = res.data.result
			// 	  },
			// 	  fail: (err)=>{
			// 		  console.log(err)
			// 	  }
			// })  
		},
		methods:{
			tz(id){
				uni.navigateTo({
					url:"./baogaoxq?id="+id
				})
			}
		}
		
	}
</script>

<style>
	.my_lists{
		justify-content: space-between;
	}
	.my_list{
		border: 1upx solid #B2B2B2;
	}
	.my_ls_r{
		border: 1upx solid #B31610;
		color: #B31610;
		border-radius: 30upx;
	}
	.my_ls_r text{
		padding: 0 40upx;
	}
</style>
